const routes = [
    {
        // 重定向到登入页
        name:"/",
        path:"/",
        redirect:'/login',
        hidden:true
        
    },
    {
        // 登入页
        name:"Login",
        path:"/login",
<<<<<<< HEAD
        component:()=>import("@/views/login/index")
=======
        component:()=>import("@/views/login/index"),
        hidden:true
>>>>>>> dev
    },
    {
        // 后台管理系统页面
        name:"system",
        path:"/system",
<<<<<<< HEAD
        component: () =>import("@/layout/index"),
=======
        redirect:'/index',
        component: () =>import("@/layout/index"),
        hidden:true,
>>>>>>> dev
        children:[
            {
                // 首页（工作台）
                name:"Index",
                path:"/index",
<<<<<<< HEAD
                component:()=>import("@/views/index/index")
            },
            {
                // 主体（Main）
                name:"Main",
                path:"/main",
                component:()=>import("@/layout/components/Main"),
                children:[
                    {
                        // 课程列表
                        name:"courseList",
                        path:"courseList",
                        component:()=>import("@/views/course/list/index")
                    }
                ]
            }
=======
                component:()=>import("@/views/index/index"),
                meta:{
                    title:"工作台",
                    icon:"iconfont icon-gongzuotai",
                    pid:1
                }
            },
            
>>>>>>> dev
        ]
    },
   
]


export default routes;